import 'package:json_annotation/json_annotation.dart';

part 'jr_transaction_model.g.dart';

@JsonSerializable()
class JrTransactionModel extends Object {
  String goodsCode;
  String goodsName;
  String orderNo;
  double payAmount;
  double paidAmount;
  String paidCurrency;

  JrTransactionModel(
    this.goodsCode,
    this.goodsName,
    this.orderNo,
    this.payAmount,
    this.paidAmount,
    this.paidCurrency,
  );

  factory JrTransactionModel.fromJson(Map<String, dynamic> srcJson) => _$JrTransactionModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$JrTransactionModelToJson(this);
}
